import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/login'
import UserList from '@/components/userList'
import PostList from '@/components/postList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/userList',
      name: 'UserList',
      component: UserList
    },
    {
      path: '/postList',
      name: 'PostList',
      component: PostList
    }
  ]
})
